package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.OrderDetails;
import com.example.demo.service.OrderDetailsService;
import com.example.demo.mapper.OrderDetailsMapper;
import org.springframework.stereotype.Service;

/**
* @author GJC
* @description 针对表【order_details】的数据库操作Service实现
* @createDate 2025-01-12 23:14:37
*/
@Service
public class OrderDetailsServiceImpl extends ServiceImpl<OrderDetailsMapper, OrderDetails>
    implements OrderDetailsService{
    //获取单个订单详情接口，根据订单ID返回订单详细信息。
    public OrderDetails getOrderDetail(int OrderId){
        return this.baseMapper.selectById(OrderId);
    }
}




